package com.ruoyi.system.service.impl;

import com.ruoyi.common.core.domain.entity.ExamineRecordDetail;
import com.ruoyi.system.mapper.ExamineRecordDetailMapper;
import com.ruoyi.system.service.ExamineRecordDetailService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: ruohao
 * @Date: 2023/9/7
 **/
@Service
public class ExamineRecordDetailServiceImpl implements ExamineRecordDetailService {
    @Resource
    private ExamineRecordDetailMapper examineRecordDetailMapper;

    @Override
    public List<ExamineRecordDetail> selectList(ExamineRecordDetail examineRecordDetail) {
        return examineRecordDetailMapper.selectList(examineRecordDetail);
    }

    @Override
    public ExamineRecordDetail selectById(Long id) {
        return examineRecordDetailMapper.selectById(id);
    }

    @Override
    public Boolean create(ExamineRecordDetail examineRecordDetail) {
        return examineRecordDetailMapper.insert(examineRecordDetail) == 1;
    }

    @Override
    public Boolean update(ExamineRecordDetail examineRecordDetail) {
        return examineRecordDetailMapper.update(examineRecordDetail) == 1;
    }

    @Override
    public Boolean deleteById(Long id) {
        return examineRecordDetailMapper.deleteById(id) == 1;
    }

    @Override
    public List<ExamineRecordDetail> getReportanbao(ExamineRecordDetail examineRecordDetail) {
        List<ExamineRecordDetail> list = examineRecordDetailMapper.getReportanbao(examineRecordDetail);
        return list;
    }
}
